// 导入request
import request from '@/utils/request' 
//获取店铺列表api
export function GetShop(params){
    return request.get("/api/yp/shop",{params})
}
//编辑店铺信息
export function EditShop(data){
    return request.put("/api/yp/shop",data)
}
//新增店铺
export function AddShop(data){
    return request.post("/api/yp/shop",data)
}
//删除店铺
export function DelShop(id){
    return request.delete("/api/yp/shop/"+id)
}
//获取区域 /api/yp/area
export function GetArea(params){
    return request.get("/api/yp/area",{params})
}
//新增区域
export function AddArea(data){
    return request.post("/api/yp/area",data)
}
//删除
export function DelArea(id){
    return request.delete("/api/yp/area/"+id)
}
//编辑区域
export function EditArea(params){
    return request.put("/api/yp/area",params)
}
// 获取分类
export function GetCate(data){
    return request.get('/api/yp/category',data)
}

// 获取静态商品数据
export function JtGoods(params){
    return request.get('/api/yp/product/static',{params})
}

// 获取商品数据
export function GetGoods(params){
    return request.get('/api/yp/product',{params})
}

// 删除商品数据
export function DelGoods(id){
    return request.delete('/api/yp/product/'+id)
}

